package com.w5cschool.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author w5cschool
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbBlog对象", description="")
public class TbBlog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "博客表主键id")
    @TableId(value = "blog_id", type = IdType.AUTO)
    private Long blogId;

    @ApiModelProperty(value = "博客标题")
    private String blogTitle;

    @ApiModelProperty(value = "博客自定义路径url")
    private String blogSubUrl;

    @ApiModelProperty(value = "博客封面图")
    private String blogCoverImage;

    @ApiModelProperty(value = "博客内容")
    private String blogContent;

    @ApiModelProperty(value = "博客分类id")
    private Integer blogCategoryId;

    @ApiModelProperty(value = "博客分类(冗余字段)")
    private String blogCategoryName;

    @ApiModelProperty(value = "博客标签")
    private String blogTags;

    @ApiModelProperty(value = "0-草稿 1-发布")
    private Integer blogStatus;

    @ApiModelProperty(value = "阅读量")
    private Long blogViews;

    @ApiModelProperty(value = "0-允许评论 1-不允许评论")
    private Integer enableComment;

    @ApiModelProperty(value = "是否删除 0=否 1=是")
    private Integer isDeleted;

    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
